
<%@ page import="edu.ads.bookloan.InventoryItem"%>
<!doctype html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'inventoryItem.label', default: 'InventoryItem')}" />
<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
	<div class="nav" role="navigation">
		<ul>
			<li><a class="home" href="${createLink(uri: '/')}"><g:message
						code="default.home.label" /></a></li>
			<li><g:link class="list" action="list">
					<g:message code="default.list.label" args="[entityName]" />
				</g:link></li>
			<li><g:link class="create" action="create">
					<g:message code="default.new.label" args="[entityName]" />
				</g:link></li>
		</ul>
	</div>
	<div id="show-inventoryItem" class="content scaffold-show" role="main">
		<h1>
			<g:message code="default.show.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message" role="status">
				${flash.message}
			</div>
		</g:if>
		<g:form>
			<ol class="property-list inventoryItem">
				<li class="fieldcontain"><span id="personId-label"
					class="property-label">People:</span> <g:select name="person.id"
						from="${personsList}" optionKey="id" /></li>
			</ol>
			<ol class="property-list inventoryItem">
				<li class="fieldcontain"><span id="rentalDays-label"
					class="property-label">Rental Days:</span> <g:select name="rentalDays"
						from="${4..7}" /></li>
			</ol>
			<fieldset class="buttons">
				<g:hiddenField name="inventoryItem.id" value="${inventoryItemInstanceId}" />
				<g:actionSubmit action="saveBookRent"
					value="${message(code: 'default.button.saveBookRent.label', default: 'Save Rent')}" />
			</fieldset>
		</g:form>
	</div>

</body>
</html>
